package com.lagou.rpc.entity;

import java.io.Serializable;

/**
 * 封装返回结果对象
 */
public class RpcResponse implements Serializable {
    private String requestId;
    private Object data;
    private String error;
    public boolean isSuccess() {
        return error == null;
    }

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }
}
